<template>
    <dd-list :list="list" removable @beforeRemove="beforeRemove"></dd-list>
</template>
<script setup lang="ts">
import { ref } from 'vue';

const list = ref([1, 2, 3, 4, 5])

function beforeRemove(i: number) {
    list.value.splice(i + 1, 1)
    return false
}
</script>
